//
//  MYNewsShopDetailsTitleCell.swift
//  MuYing
//
//  Created by tbb on 2020/3/6.
//  Copyright © 2020 TBB. All rights reserved.
//

import UIKit

class MYNewsShopDetailsTitleCell: YQTableViewBaseCell {
    
    @objc var detailsModel:MYNewsShopDetailsModel? {
        didSet {
            self.priceLb.text = String(format: "￥%@", self.detailsModel?.priceScope ?? "")
            self.titleLb.text = self.detailsModel?.name;
            self.gradeLb.text = String(format: "%@: %zd分",kYQLSSwift("评分"),self.detailsModel?.grade ?? 0);
            self.salesVolumeLb.text = String(format: "%@: %zd",kYQLSSwift("月销"),self.detailsModel?.monthlySales ?? 0);
            self.commentVolumeLb.text = String(format: "%@: %zd",kYQLSSwift("评论数"),self.detailsModel?.commentNumber ?? 0);
        }
    }
    @IBOutlet weak var priceLb: UILabel!

    
    @IBOutlet weak var titleLb: UILabel!
    
    @IBOutlet weak var gradeLb: UILabel!
    @IBOutlet weak var salesVolumeLb: UILabel!
    
    @IBOutlet weak var commentVolumeLb: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

    }
    
}
